{"ast":null,"code":"var _jsxFileName = \"/data/messenger.client/src/components/UserItem/index.tsx\";\nimport React from 'react';\nimport classNames from \"classnames\";\nimport './UserItem.scss';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nconst UserItem = props => {\n  return /*#__PURE__*/_jsxDEV(\"div\", {\n    className: classNames('dialogs__item', {\n      'dialogs__item--online': !chat.multiChat,\n      'dialogs__item--active': viewedDialog\n    }),\n    onClick: () => {\n      if (store.getViewedDialogId() === chat.id) {\n        store.setViewedDialogId(null);\n      } else {\n        store.setCurrentDialog(chat);\n        store.setViewedDialogId(chat.id);\n      }\n    }\n  }, void 0, false, {\n    fileName: _jsxFileName,\n    lineNumber: 9,\n    columnNumber: 9\n  }, this);\n};\n_c = UserItem;\nexport default UserItem;\nvar _c;\n$RefreshReg$(_c, \"UserItem\");","map":{"version":3,"names":["React","classNames","UserItem","props","chat","multiChat","viewedDialog","store","getViewedDialogId","id","setViewedDialogId","setCurrentDialog"],"sources":["/data/messenger.client/src/components/UserItem/index.tsx"],"sourcesContent":["import React from 'react';\nimport {UserItemProps} from \"../../models/props/UserItemProps\";\nimport classNames from \"classnames\";\nimport './UserItem.scss';\n\nconst UserItem: React.FC<UserItemProps> = (props) => {\n\n    return (\n        <div\n            className={classNames('dialogs__item', {\n                'dialogs__item--online' : !chat.multiChat,\n                'dialogs__item--active': viewedDialog\n            })}\n            onClick={() => {\n                if (store.getViewedDialogId() === chat.id) {\n                    store.setViewedDialogId(null);\n                } else {\n                    store.setCurrentDialog(chat);\n                    store.setViewedDialogId(chat.id);\n                }\n            }}\n        >\n\n        </div>\n    );\n}\n\nexport default UserItem;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAO,iBAAiB;AAAC;AAEzB,MAAMC,QAAiC,GAAIC,KAAK,IAAK;EAEjD,oBACI;IACI,SAAS,EAAEF,UAAU,CAAC,eAAe,EAAE;MACnC,uBAAuB,EAAG,CAACG,IAAI,CAACC,SAAS;MACzC,uBAAuB,EAAEC;IAC7B,CAAC,CAAE;IACH,OAAO,EAAE,MAAM;MACX,IAAIC,KAAK,CAACC,iBAAiB,EAAE,KAAKJ,IAAI,CAACK,EAAE,EAAE;QACvCF,KAAK,CAACG,iBAAiB,CAAC,IAAI,CAAC;MACjC,CAAC,MAAM;QACHH,KAAK,CAACI,gBAAgB,CAACP,IAAI,CAAC;QAC5BG,KAAK,CAACG,iBAAiB,CAACN,IAAI,CAACK,EAAE,CAAC;MACpC;IACJ;EAAE;IAAA;IAAA;IAAA;EAAA,QAGA;AAEd,CAAC;AAAA,KApBKP,QAAiC;AAsBvC,eAAeA,QAAQ;AAAC;AAAA"},"metadata":{},"sourceType":"module"}